'''
'''

from PyQt4.QtCore import pyqtSignature
from PyQt4.QtGui import QDialog
from SimpleCells.Gui.Ui_SCFindDialog import Ui_SCFindDialog

class SCFindDialog(QDialog,Ui_SCFindDialog):
    ''''''
    def __init__(self,editor,parent=None):
        QDialog.__init__(self,parent)
        self.setupUi(self)
        self.__editor = editor

    @pyqtSignature("")
    def on_nextButton_clicked(self):
        text = self.findEdit.text()
        if text.isEmpty(): return
        self.__editor.findFirst(text,False,False,False,False,True,-1,-1,True)

if __name__ == '__main__':
    pass
